package learning.dataStream;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;

public class DataStream1 {
	public static void main(String[] args) {
		DataOutputStream dos=null;
		DataInputStream  dis=null;
		try {
//			dos=new DataOutputStream(new FileOutputStream("myfile/me.txt"));
//		    dos.writeBooslean(true);
//		    dos.writeBytes("I come from china");
			dis=new DataInputStream(new FileInputStream("myfile/me.txt"));
			dis.readBoolean();
			dis.read();
		} catch (  Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
